package game.movie
{
	import laya.utils.Browser;
	

	/**
	 * 敌人类
	 *@date 2017-2-21 上午11:12:35
	 *@author zhouhonghui
	 */
	public class EnemyMovie extends GRoleBaseMovie
	{
		protected var _speed:int = 15;
		protected var _eType:int;		
		private var _isDeath:Boolean;
		private var _time:Number;
		public function EnemyMovie(eType:int=1)
		{
			super();
			autoSize = true;
			_eType = eType;
		}
		
		public function get isDeath():Boolean
		{
			return _isDeath;
		}

		public function set isDeath(value:Boolean):void
		{
			_isDeath = value;
		}

		public function get eType():int
		{
			return _eType;
		}

		public function set eType(value:int):void
		{
			_eType = value;
		}
		public override function set action(value:int):void
		{
			_action = value;
			var key:String = "enemy"+_eType;
			setAction(key,value);
		}
		public override function isOut():Boolean
		{
			return y>=Laya.stage.height-this.height;
		}

		public function get speed():int
		{
			return _speed;
		}

		public function set speed(value:int):void
		{
			_speed = value;
		}


	}
}